Skip to content

TalhaAwan/Express-Controller-Unit-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Controller Unit-Testing

Requirement

  • node
  • npm
  • mongoDB

Instructions

  • Clone the repository
  • Globally install mocha and istanbul npm install mocha istanbul -g
  • Run npm install for project dependencies
  • To run tests npm test
  • To start server make sure mongoDB is running and then npm start or node server

Explanation

The code is described at length in two posts of my blog:

About

Unit testing of express + mongoose controllers for APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published